﻿using System;
using masterview.Code.interfaces;

namespace masterview.Code
{
    public class ServerSideMessage : IActive
    {
        public ServerSideMessage()
        {
            Message = String.Empty;
            Title = String.Empty;
            NotifyType = -1;
            IsActive = false;
        }

        public static ServerSideMessage GetInstance() {
            return new ServerSideMessage();
        }

        public string Message { get; set; }
        public string Title { get; set; }
        public int NotifyType { get; set; }
        public bool IsActive { get; set; }

        public class MessageType
        {
            public const int Information = 0;
            public const int Warning = 1;
            public const int Error = 2;
            public const int Success = 3;
        }
    }
}